{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}
{% import "partial/enterprise_table.html" as enterprise_table_macro %}
{% import "partial/search_enterprise_form.html" as search_enterprise_form_macro %}


{% block title %}万屏时代--企业账号列表{% endblock %}

{% block panel_heading %}
  万屏时代--企业账号列表
  <div class="pull-right btn-group">
    <a href="{{ url_for('enterprise_bp.add_enterprise') }}"
       class="btn btn-xs btn-success"
       style="margin-right: 5px;" target="_self">
        新增企业账号
    </a>
  </div>
{% endblock %}

{% block panel_body %}
    {{ search_enterprise_form_macro.gen_form(search_form) }}
    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'enterprise_bp.enterprise_list', **url_kwargs) }}
    </div>
    {% endif %}

    {{ enterprise_table_macro.gen_table(enterprises) }}

    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'enterprise_bp.enterprise_list', **url_kwargs) }}
    </div>
    {% endif %}
{% endblock %}

